<template>
  <div class>
    <el-popover width trigger="click" placement="top-start">
      <el-select
        v-model="value2"
        multiple
        collapse-tags
        style="padding-left: 20px;"
        placeholder="请选择"
      >
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        ></el-option>
      </el-select>
      <!-- <el-button type="primary" @click="1" slot="reference">模块选择</el-button> -->
      <div slot="reference">
        <slot></slot>
      </div>
    </el-popover>
  </div>
</template>
<script>
export default {
  name: "elementcheck",
  components: {},
  data() {
    return {
      options: [
        {
          value: "选项1",
          label: "左侧面板"
        },
        {
          value: "选项2",
          label: "右侧面板"
        },
        {
          value: "选项3",
          label: "告警信息"
        }
      ],
      value1: [],
      value2: []
    };
  },
  computed: {},
  watch: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>